package com.esir.harmony.base;


import ohos.app.Context;

/**
 * Context代理
 */
class ContentXWrapper implements ContextX {
    private final Context mContext;

    public ContentXWrapper(Context context) {
        this.mContext = context;
    }

    private Context context() {
        if (mContext != null) {
            return mContext;
        } else {
            //
        }
        return null;
    }

    @Override
    public String getString(int resId) {
        return context().getString(resId);
    }

    @Override
    public String getString(int resId, Object... formatArgs) {
        return context().getString(resId, formatArgs);
    }
}
